package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.pro.Process;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.awt.geom.RectangularShape;
import java.util.ArrayList;
import java.util.List;

/**
 * @Description:
 * @Author: shanzhe
 * @Date: 2025/9/17 - 14:07
 */
@Transactional
public interface ProcessService {
    PageInfo<Process> queryProcessListByPageAndCondition( String processCode, String processName,
                                                                    Integer isActive, Integer page, Integer size);

    int addProcess(Process process);

    Process queryProcessByProcessCode(String processCode);

    int updateProcessById(Process process);

    int deleteProcessById(Integer id);
    //根据id批量删除工序
    int deleteProcessByListIds(@Param("ids") List<Integer> ids);
}
